package com.movie.theatre.web.exception;

import lombok.Getter;

/**
 * @Auther: liwu
 * @Date: 2019/12/23 10:45
 * @Description:
 */
@Getter
public enum ErrorCode {

    /**
     * 与业务无关错误码 1000 - 开始
     */
    PARAM_ERROR(1001, "参数异常"),
    DATA_ERROR(1002, "数据异常"),
    SYSTEM_FAILD(1009, "系统错误"),

    MQ_SEND_ERROR(3004, "MQ发送消息出现异常"),

    ;

    private Integer code;
    private String desc;

    ErrorCode(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
